<template>
  <div>
    <my-child :click-call-back="test"></my-child>
  </div>
</template>

<script>
import child from './child'

export default {
  name: "myCallBack",
  components: {
    'my-child': child
  },
  data() {
    return {
      say: undefined,
    }
  },
  methods: {
    test(val) { // 是child组件的函数
      this.say = val
      console.log(val)
      console.log(this.say)
    }
  }
}
</script>

<style scoped>

</style>
